<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="huluo的技术博客"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>Stay hungry, stay foolish | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="false"><div class="author-info"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><nav class="no-bg" id="nav"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="site-info"><div id="site-title">Kyren's Blog</div><div id="site-sub-title">Stay hungry, stay foolish</div><div id="site-social-icons"><a class="social-icon" href="https://github.com/huluo666" target="_blank" rel="noreferrer noopener nofollow"><i class="fa-github fa"></i></a></div></div></nav><div id="content-outer"><div class="layout" id="content-inner"><div class="recent-post-item article-container"><a class="article-title" href="/2017/12/22/WebRTC%E7%9B%B4%E6%92%AD%E7%9B%B8%E5%85%B3/">iOS webrtc相关</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-12-22</time><div class="content">iOS Video Toolbox：GPGPU加速YUV图像处理
webrtc (6) 在Webrtc中集成VideoToolbox
国内主流即时通讯SDK提供商测评报告
http://www.csdn.net/article/a/2017-11-07/15934563
ios美颜 调研 GPUIm ...</div><a class="more" href="/2017/12/22/WebRTC%E7%9B%B4%E6%92%AD%E7%9B%B8%E5%85%B3/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/12/22/iOS%E5%88%A4%E6%96%AD%E6%98%AFpresent%E8%BF%98%E6%98%AFpush/">iOS判断是present还是push</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-12-22</time><div class="content">方式
1234567891011121314151617- (BOOL)isModal &#123;    return self.presentingViewController.presentedViewController == self      || (self.navigationCon ...</div><a class="more" href="/2017/12/22/iOS%E5%88%A4%E6%96%AD%E6%98%AFpresent%E8%BF%98%E6%98%AFpush/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/12/16/Mac-%E6%B3%A8%E5%86%8C%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B/">Mac开发 注册文件类型-NSDocument</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-12-16</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/Java/">Java</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/hexo/">hexo</a></span><div class="content"> https://developer.apple.com/library/content/samplecode/TextEdit/Introduction/Intro.htmlhttps://developer.apple.com/library/content/samplecode/CustomS ...</div><a class="more" href="/2017/12/16/Mac-%E6%B3%A8%E5%86%8C%E6%96%87%E4%BB%B6%E7%B1%BB%E5%9E%8B/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/11/28/iOS%E6%97%B6%E9%97%B4%E8%BD%AC%E6%8D%A2yyyy%E5%B9%B4%E4%BB%BD%E4%B8%8EYYYY%E7%9A%84%E5%8C%BA%E5%88%AB/">iOS时间转换yyyy年份与YYYY的区别</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-11-28</time><div class="content">源于开发中时间格式大小写不分出现的一个Bug
大Y是这周的年份，
小y才是标准的年份
@&quot;YYYY-MM-dd&quot;是以周计算的
比如2016-1-1是周五，这周周日(一个星期的开始是周日)是2015-12-27日，那么这周的年份是2016，所以会加一年，也即27，28…31都会多一 ...</div><a class="more" href="/2017/11/28/iOS%E6%97%B6%E9%97%B4%E8%BD%AC%E6%8D%A2yyyy%E5%B9%B4%E4%BB%BD%E4%B8%8EYYYY%E7%9A%84%E5%8C%BA%E5%88%AB/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/11/10/OC%E4%B8%8ESwift%E6%B7%B7%E7%BC%96/">OC与Swift混编</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-11-10</time><div class="content">http://huuang.com/?p=103
在objectivec项目中使用swift写的第三方库
OC项目中使用Swift
</div><a class="more" href="/2017/11/10/OC%E4%B8%8ESwift%E6%B7%B7%E7%BC%96/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/11/08/%E5%B8%B8%E7%94%A8%E5%BC%80%E5%8F%91%E7%BD%91%E5%9D%80/">常用开发网址</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-11-08</time><div class="content">iOS开发http://swift.ctolib.com/http://www.cocoachina.com/
友情链接

ITechzero
GithubTrending
CTOLib
苹果DEVUnion
木棠
LeapDing

</div><a class="more" href="/2017/11/08/%E5%B8%B8%E7%94%A8%E5%BC%80%E5%8F%91%E7%BD%91%E5%9D%80/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/11/07/%E6%A8%A1%E6%8B%9FApi%E6%8E%A5%E5%8F%A3%E5%B7%A5%E5%85%B7/">模拟Api接口工具</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-11-07</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/devtool/">devtool</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E5%B7%A5%E5%85%B7/">工具</a></span><div class="content">一、功能简介1快速简单的使用Mockjs对接口数据进行模拟，生成在线API。

​	有些时候当你在进行开发时，你需要的后端接口可能还没有完成对于开发所需要的支持。我们需要一个模拟API提供一些伪造数据来模拟真实环境下的APP使用场景。这就是我们为什么需要模拟REST API的原因，开发者一般会使用如 ...</div><a class="more" href="/2017/11/07/%E6%A8%A1%E6%8B%9FApi%E6%8E%A5%E5%8F%A3%E5%B7%A5%E5%85%B7/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/11/06/mockjsTemplate/">Mockjs快速使用示例</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-11-06</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/devtools/">devtools</a></span><div class="content">


	
	Document








hljs.initHighlightingOnLoad();
//js自动刷新
	function reloadPage()
	{		
		hljs.initHighlighting.called = false;
		hljs.initHighligh ...</div><a class="more" href="/2017/11/06/mockjsTemplate/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/11/04/iOS:Mac%E6%96%87%E6%9C%AC%E9%AB%98%E4%BA%AE/">iOS富文本高亮</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-11-04</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">多个predicates
use NSCompoundPredicate for your multiple predicates, you can refer NSCompoundPredicate Class Reference
Use NSPredicate to search multipl ...</div><a class="more" href="/2017/11/04/iOS:Mac%E6%96%87%E6%9C%AC%E9%AB%98%E4%BA%AE/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/10/20/jquery%E8%8E%B7%E5%8F%96%E5%85%83%E7%B4%A0/">JQuery选择器（获取元素）</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-10-20</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/Node-js/">Node.js</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Node-js/">Node.js</a></span><div class="content">示例html
1234567891011121314151617181920212223242526&lt;!DOCTYPE html&gt;&lt;html&gt;	&lt;head&gt;		&lt;meta charset=&quot;UTF-8&quot;&gt;		&lt;title&gt ...</div><a class="more" href="/2017/10/20/jquery%E8%8E%B7%E5%8F%96%E5%85%83%E7%B4%A0/#more" style="margin-top: 14px">阅读更多</a><hr></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/page/6/"><i class="fa fa-chevron-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/6/">6</a><span class="page-number current">7</span><a class="page-number" href="/page/8/">8</a><span class="space">&hellip;</span><a class="page-number" href="/page/24/">24</a><a class="extend next" rel="next" href="/page/8/"><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_uv"><i class="fa fa-user"></i><span id="busuanzi_value_site_uv"></span><span></span></span><span class="footer-separator">|</span><span id="busuanzi_container_site_pv"><i class="fa fa-eye"></i><span id="busuanzi_value_site_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>